#pragma once

#include <QWidget>
#include "ui_LockWidget_proUsb.h"
#include "Lock_proUsb.h"

class LockWidget_proUsb: public QWidget
{
	Q_OBJECT

public:
    LockWidget_proUsb();	
	~LockWidget_proUsb();	

	void init();
	Lock_proUsb *lock;	

protected slots:
	void on_btnCoID_clicked();
	void on_btnDefault_clicked();
	void on_btnSaveCoId_clicked();
	void on_btnGetVersion_clicked();
	void on_btnReadCard_clicked();  
	void on_btnWriteCard_clicked(); 
	void on_btnLogout_clicked();  	
	void on_btnOpenUsb_clicked();
	void on_btnCloseUsb_clicked();  	

private:		
	void reportError(int ret);

	Ui::LockWidget_proUsb ui;
};